package com.skywolf.chem.riding.service;

import com.skywolf.chem.common.sysconfig.pojo.vo.PageVO;
import com.skywolf.chem.riding.entity.Info;
import com.baomidou.mybatisplus.extension.service.IService;
import com.skywolf.chem.riding.pojo.RidingQueryDto;
import com.skywolf.chem.riding.pojo.RidingQueryParam;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 骑行表 服务类
 * </p>
 *
 * @author 
 * @since 2020-09-07
 */
public interface IInfoService extends IService<Info> {
    /**
     *
     * @param uid
     * @param num
     * @param updateType 1-上报同一周的数据  0-新的一周的数据
     * @return
     */
    int updateRiding(Long uid,Double num,Integer updateType);
    int getPaiMing(Double num);
    PageVO<RidingQueryDto> pageList(RidingQueryParam queryParam);

    PageVO<RidingQueryDto> managerPageList(RidingQueryParam queryParam);

    Long getMaxId();

    List<LocalDateTime> getLocalDateTime();

    void addRiding(Info info);
}
